From: Jim Blandy Date: Thu, 25 Mar 1993 23:27:42 +0000 (+0000) Subject: * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3; X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96688 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=c3498e64386cc83fd0d13bb2f069e9379fe597a9;p=emacs.git * xselect.c (SELECTION_QUANTUM): Don't use XMaxRequestSize on R3; access the display structure directly. --- diff --git a/src/xselect.c b/src/xselect.c index c57f51604b3..66812bda044 100644 --- a/src/xselect.c +++ b/src/xselect.c @@ -63,8 +63,11 @@ Lisp_Object Vx_sent_selection_hooks; */ #define MAX_SELECTION_QUANTUM 0xFFFFFF -#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize (dpy) << 2) - 100) - +#ifdef HAVE_X11R4 +#define SELECTION_QUANTUM(dpy) ((XMaxRequestSize(dpy) << 2) - 100) +#else +#define SELECTION_QUANTUM(dpy) (((dpy)->max_request_size << 2) - 100) +#endif /* The timestamp of the last input event Emacs received from the X server. */ unsigned long last_event_timestamp;